package com.example.orderfoodsystem22201310liuziming.repository;

import com.example.orderfoodsystem22201310liuziming.entity.allorder;
import org.springframework.data.repository.PagingAndSortingRepository;

import java.util.List;

public interface AllOrderRepository extends PagingAndSortingRepository<allorder,Integer> {
    allorder findByUsername(String name);
    allorder findByTablenumberAndStatus(int tablenumber, int status);
    allorder findById(int id);
    allorder findByTablenumberAndStatusIn(int tablename, List<Integer> status);

    List<allorder> findAllByStatusIn(List<Integer> status);

}
